package com.example.shop.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
* 对商品评价的评论进行回复评论
* </p>
*
* @author 作者
* @since 2022-05-29
*/
@Getter
@Setter
@Accessors(chain = true)
@TableName("r_evaluation_comments_reply")
public class CommentsReply extends Model<CommentsReply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "evaluation_id", type = IdType.ASSIGN_ID)
    //评价id
    private Long evaluationId;
    //被回复评论的评论id
    private Long replyCommentsId;

    @TableField(whereStrategy = FieldStrategy.NOT_EMPTY)
    //被回复评论的用户
    private Long replyCommentsUserId;
    @TableField(whereStrategy = FieldStrategy.NOT_EMPTY)
    //进行回复评论的用户
    private Long commentsUserId;

    @TableField(whereStrategy = FieldStrategy.NOT_EMPTY)
    //回复内容
    private String replyContent;

    @Override
    public String toString() {
        return "CommentsReply{" +
                "evaluationId=" + evaluationId +
                ", replyCommentsId=" + replyCommentsId +
                ", replyCommentsUserId=" + replyCommentsUserId +
                ", commentsUserId=" + commentsUserId +
                ", replyContent='" + replyContent + '\'' +
                '}';
    }
}
